<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Banner图片切换</title>
    <link rel="stylesheet" href="style2.css">
</head>

<body>
    <div class="banner">
        <img src="img1.jpg" alt="图片1" class="banner-img active">
        <img src="img2.jpg" alt="图片2" class="banner-img">
        <img src="img3.jpg" alt="图片3" class="banner-img">
        <!-- 左右切换按钮 -->
        <button class="prev-btn">&lt;</button>
        <button class="next-btn">&gt;</button>
    </div>
    <script src="script.js"></script>
</body>

</html>